﻿using WindowsGame.Common.Interfaces;
using WindowsGame.Common.Static;

namespace WindowsGame.Common.Managers
{
	public interface IDeviceManager
	{
		void Initialize();
		void LoadContent();
		Platform GetPlatform();
	}

	public class DeviceManager : IDeviceManager
	{
		private readonly IDeviceFactory deviceFactory;

		public DeviceManager(IDeviceFactory deviceFactory)
		{
			this.deviceFactory = deviceFactory;
		}

		public void Initialize()
		{
			deviceFactory.Initialize();
		}
		public void LoadContent()
		{
			deviceFactory.LoadContent();
		}
		public Platform GetPlatform()
		{
			return deviceFactory.GetPlatform();
		}
	}

}